import request from '@/utils/request'

// 查询留级管理列表
export function listRepetitiveManagement(query) {
  return request({
    url: '/teaching/repetitiveManagement/list',
    method: 'get',
    params: query
  })
}

// 查询留级管理详细
export function getRepetitiveManagement(id) {
  return request({
    url: '/teaching/repetitiveManagement/' + id,
    method: 'get'
  })
}

// 新增留级管理
export function addRepetitiveManagement(data) {
  return request({
    url: '/teaching/repetitiveManagement',
    method: 'post',
    data: data
  })
}

export function addTaskHistory(data) {
  return request({
    url: '/teaching/repetitiveManagement/editTask',
    method: 'post',
    data: data
  })
}


// 修改留级管理
export function updateRepetitiveManagement(data) {
  return request({
    url: '/teaching/repetitiveManagement',
    method: 'put',
    data: data
  })
}

// 删除留级管理
export function delRepetitiveManagement(id) {
  return request({
    url: '/teaching/repetitiveManagement/' + id,
    method: 'delete'
  })
}
